#include "config.h"
#include "util.h"


/**
 * \file util.c
 * \author Clecio Varjao and Leanne Ross
 * \date October 2007
 * \remarks Based on code created by Dr. Mantis Cheng
 * \brief RTOS utilities implementation
 */


/**
 *  \param milliseconds  an unsigned integer argument
 *
 *	A delay of \a milliseconds occurs
 */
void delay(unsigned int milliseconds){
	#ifndef DISABLE_DELAY
		unsigned int l=(PROCESSOR_SPEED);
		unsigned int i, j;
		for(i=0; i < milliseconds; i++)for(j=0; j < l; j++);
	#endif
}
